package cn.web.demo.mapper;

import cn.web.demo.model.Permission;

import java.util.List;

public interface PermissionMapper {
    public List<Permission> findAllMenus();

    public List<Permission> findAllPermission();

    public List<Permission> findAllParentMenus();

    public void save(Permission permission);

    public Permission findAllPermissionById(int id);

    public int getMaxZIndex();

    public  List<Permission> findPermissionListByUserId(Integer userId);
}
